/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package me.report.api.web.service;

//import iwin.vn.api.jdbc.service.JdbcService;
import me.report.api.mongodb.service.MongoService;
import me.report.api.web.cache.AbstractCacheMap;
import me.report.api.web.cache.TimedCache;
import org.apache.log4j.Logger;

/**
 *
 * @author chuyennm
 */
public class ApiWebService {

    Logger logger = Logger.getLogger(getClass());
    private MongoService mongoService = null;
    public static TimedCache tc;
    public static TimedCache facebookTC;

    public void setMongoService(MongoService mongoService) {
        this.mongoService = mongoService;
    }


    public ApiWebService() {
        tc = new TimedCache(0);
        tc.schedulePrune(10000);
        facebookTC = new TimedCache(0);
        facebookTC.schedulePrune(600000);
    }
}
